package com.test.rxjavademo;

import java.util.ArrayList;
import java.util.List;

public class StudentModel {

    private static List<Student> studentList;

    public static void init(){
        studentList = new ArrayList<>();

        for (int i = 0; i < 10; i++) {
            Student student = new Student();
            List<Course> courseList = new ArrayList<>();
            for (int j = 0; j < 4; j++) {
                Course course = new Course();
                course.setCourseName("course" + j);
                courseList.add(course);
            }
            student.setName("student" + i);
            student.setCourseList(courseList);
            studentList.add(student);
        }
    }

    public static List<Student> getStudentList() {
        return studentList;
    }

}
